package com.example.guetdemo.annotations;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Description : 自定义校验注解
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.PARAMETER})

//StrongPassword 为执行判断逻辑实现类!
@Constraint(validatedBy = com.example.guetdemo.annotations.impl.StrongPassword.class)
public @interface StrongPassword {

    String[] value() default {};

    String message() default "请输入强密码！";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}